/*
 * Project : Linuxbox
 * File    : UserManDel.java
 * Version : 1.0
 * Author  : Kevin Zhang
 *
 * Copyright (c) 2000-2001 by Linuxbox, Inc.
 * All rights reserved.
 */
package linuxbox.admin.servlet;

import javax.servlet.http.*;

import linuxbox.admin.logic.*;
import linuxbox.common.*;

public class UserGrpDelAction extends Action {
	protected static String successJSP = null;
	
    public void doAction(HttpSession aSession, BoxSession aBoxSession, 
    HttpServletRequest req, HttpServletResponse res) throws Exception {
		int grpID = Integer.parseInt(req.getParameter("GRP_ID"));
	
		UserManager um = UserManager.getInstance();
		UserGrpObject ugo = um.getUserGrp(grpID);
		um.removeUserGrp(grpID);
		redirectFile(successJSP, req, res);
	}

	public void setSuccessJSP(String str) {
	    //"/linuxbox/jsp/admin/DeptAdmin.jsp"
		successJSP = str;
	}
}
